package com.qf.service.impl;

import com.qf.service.StudentService;

public class StudentServiceImpl implements StudentService {
    @Override
    public void add() {
        System.out.println("StudentServiceImpl的新增方法");
    }

    @Override
    public Integer remove() {
        System.out.println("StudentServiceImpl的删除方法");
        return 1;
    }

    @Override
    public Integer modify() {
        System.out.println("StudentServiceImpl的修改方法");
        int i = 10/0;
        return 100;
    }

    @Override
    public void show() {
        System.out.println("StudentServiceImpl的查询单个方法");
        throw new RuntimeException("有异常，看异常增强是否能接收");
    }

    @Override
    public void showAll() {
        System.out.println("StudentServiceImpl的查询所有方法");
    }
}
